const state = {
    open: false,
    active:0,
    type:1,//1为正常弹出框，2为右下角的浮窗
    title:'批量导入用户'
  };
  
  const mutations = {
    TOGGLE_SIDEBAR: (state, str) => {
      state.open = str
    },
    TOGGLE_ACTIVE: (state, str) => {
      state.active = str
    },
    TOGGLE_TYPE: (state, str) => {
      state.type = str
    },
    TOGGLE_TITLE: (state, str) => {
      state.title = str
    }
  };
  
  const actions = {
    SETOPEN({ commit },str) {
      commit("TOGGLE_SIDEBAR",str);
    },
    SETACTIVE({ commit },str) {
      commit("TOGGLE_ACTIVE",str);
    },
    SETTYPE({ commit },str) {
      commit("TOGGLE_TYPE",str);
    },
    SETTITLE({ commit },str) {
      commit("TOGGLE_TITLE",str);
    }
  };
  
  export default {
    namespaced: true,
    state,
    mutations,
    actions,
  };
  